<div class="panel panel-default mb27">
  <!-- Default panel contents -->
  <div class="panel-heading">巡展
  </div>
  <table class="table">
    <thead>
      <tr>
        <!-- <th class="bg-primary text-center">项目编号</th> -->
        <th class="bg-primary text-center">订单编号</th>
        <th class="bg-primary text-center">活动主题</th>
        <th class="bg-primary text-center">活动类型</th>
        <th class="bg-primary text-center">活动额度</th>
        <th class="bg-primary text-center">预算总费用</th>
        <th class="bg-primary text-center">站点状态</th>
        <th class="bg-primary text-center">明细</th>
        <th class="bg-primary text-center">结算申请总费用</th>
        <th class="bg-primary text-center">结算凭证</th>
        <th class="bg-primary text-center">结算审核情况</th>
        <th class="bg-primary text-center">结算审核金额</th>
        <th class="bg-primary text-center">KPI系数</th>
        <th class="bg-primary text-center">结算金额</th>
        <?php if ( in_array($action, array('audit')) ) {?>
        <th class="bg-primary text-center">项目一键审核</th>
        <?php } ?>
      </tr>
    </thead>
    <tbody>
    <?php foreach($xunProjectList as $k => $v): ?>
      <tr>
        <!-- <td class="text-center"><div style="width:150px;word-wrap:break-word;"><?php echo $v['activityId']; ?></div></td> -->
        <td class="text-center"><?php echo $v['orderId']; ?></td>
        <td class="text-center"><?php echo $v['activityName'] ?></td>
        <td class="text-center"><?php echo $v['activityType'] ?></td>
        <td class="text-center"><?php echo $v['activityCost'] ?></td>
        <td class="text-center"><?php echo $v['budgetApply'] ?></td>
        <td class="text-center"><?php echo $v['orderStatus'] ?></td>
        <td class="text-center">
          <?php if ( in_array($action, array('audit')) ) {?>
          <button class="btn btn-default" type="button" onclick="newWindow('项目审核', '<?=printUrl('XunProject','settleAudit', array('activityId'=>$v['activityId']) )?>', 900, 600)">结算审核</button>
          <?php } ?>
          <?php if (in_array($action, array('check'))) {?>
          <button type="button" onclick="newWindow('查看巡展项目', '<?=printUrl('XunProject','settleCheck', array('activityId'=>$v['activityId']))?>', 900, 600)" class="btn btn-default">查看</button>
          <?php } ?>
        </td>
        <td class="text-center"><?php echo $v['settleApply'] ?></td>
        <td class="text-center">
          <a target="_blank" href="http://btl.dongfeng-nissan.com.cn/fg/user/user.do?actionType=vieworderactivity&orderId=<?=$v['orderId']?>">点击查看</a>
        </td>
        <td class="text-center"><?php echo $v['settleAuditStr'] ?></td>
        <td class="text-center"><?php echo $v['settleAudit'] ?></td>
        <td class="text-center"><?php echo $v['kpi'] ?></td>
        <td class="text-center"><?php echo $v['settleMoney'] ?></td>
        <?php if (in_array($action, array('audit'))) {?>
        <td class="text-center">
          <?php
          $options = $this->config->item('settleAuditOptions');
          $extra = ' class="form-control settleAuditRs" style="width:70px;" money="'.($v['settleAudit'] ? $v['settleAudit'] : $v['settleApply']).'" ';
          if ($v['settleAuditDetail'] == 1 || $this->user['userRole'] < $v['settleAuditRole']) {
            $extra .= " disabled";
          }
          echo form_dropdown('xun['.$v['activityId'].'][settleAuditRs]', $options, $v['settleAuditRs'], $extra);
          ?>
        </td>
        <?php } ?>
      </tr>
    <?php endforeach; ?>
    </tbody>
  </table>
</div>